package com.whli.autumn.mall.sale.domain.dto.saleorder;

import com.whli.autumn.core.extend.domain.dto.BaseAddDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * <p>销售订单新增参数</p>
 *
 * @author whli
 * @version 1.0.0
 * @since 2023-05-01 16:38
 */
@ApiModel(description = "销售订单新增参数")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SaleOrderAddDTO extends BaseAddDTO {

    @ApiModelProperty(value = "联系人")
    @NotBlank(message = "联系人不能为空")
    private String contact;

    @ApiModelProperty(value = "地区编码")
    @NotBlank(message = "所属地区不能为空")
    private String areaCode;

    @ApiModelProperty(value = "常住地址")
    @NotBlank(message = "常住地址不能为空")
    private String address;

    @ApiModelProperty(value = "E-MAIL")
    private String email;

    @ApiModelProperty(value = "联系方式")
    @NotBlank(message = "联系方式不能为空")
    private String phone;

    @ApiModelProperty(value = "经度")
    @NotBlank(message = "地址经度不能为空")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    @NotBlank(message = "地址纬度不能为空")
    private String latitude;

}
